<?php
$assignment = elgg_extract ( 'entity', $vars, FALSE );

$url_file_label = elgg_echo('submana:submitasg:url');
$url_file_input = elgg_view('input/text', array(
	'name' => "url",
));

$upload_file_label = elgg_echo('submana:submitasg:orupload');
$upload_file_input = elgg_view('input/file', array('name' => 'upload'));

$note_label = elgg_echo('submana:submitasg:note');
$note_input = elgg_view('input/plaintext', array('name'  => "note"));

$assgin_guid = elgg_view ( 'input/hidden', array (
		'name' => 'assign_guid',
		'value' => $assignment->guid,
) );
if($assignment->file_guid){
	$file_guid = elgg_view ( 'input/hidden', array (
			'name' => 'file_guid',
			'value' => $assignment->file_guid,
	) );
}


// buttons
$save_button = elgg_view ( 'input/submit', array (
		'value' => elgg_echo ( 'submana:addprojects:save' )
) );
$reset_button = elgg_view ( 'input/reset', array (
		'value' => elgg_echo ( 'submana:addprojects:reset' )
) );

echo <<<___HTML
<div>
	<div class="left" style="width:65%;">
		<label>$url_file_label</label>
		$url_file_input
	</div>
	<div class="right" style="width:30%">
		<label>$upload_file_label</label>
		$upload_file_input
	</div>
	<div class="clearboth" ></div>
	<div>
		<label>$note_label</label>
		$note_input
	</div>
	<div>
		$file_guid
		$assgin_guid
		$save_button
		$reset_button
	<div>
</div>

___HTML;

?>